package com.baichuan.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

/**
 * @author ldy
 * @data 2022/11/27
 * @description
 */
@RestController
public class OrderController
{
@Value("${server.port}")
private String port;

@GetMapping("/order/docker")
public String helloDocker()
 {
return "hello docker"+"\t"+port+"\t"+ UUID.randomUUID().toString();
 }

@GetMapping(value ="/order/index")
public String index()
 {
return "服务端口号: "+"\t"+port+"\t"+UUID.randomUUID().toString();
 }
}
